package com.tchy.cloud.entity;

import javax.persistence.*;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * Created by xmweilove
 * 咨询师课程分类
 */
@Entity
@Table(name = "a_course_series", schema = "", catalog = "")
public class ACourseSeriesEntity {
    private Long id;//主键、咨询师课程系列id course_series_id
    private String name;//课程系列名称 series_name;

    // private Long consultantId;//咨询师id  consultant_id
    private AConsultantEntity consultantEntity;


    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "course_series_id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "series_name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "consultant_id")
    public AConsultantEntity getConsultantEntity() {
        return consultantEntity;
    }

    public void setConsultantEntity(AConsultantEntity consultantEntity) {
        this.consultantEntity = consultantEntity;
    }
}
